<?php

class Resource_model extends CI_Model
{
    public function __construct()
    {
        $this->load->database();
    }

    public function getAll()
    {
        $query = $this->db->get("resource");
        return $query->result_array();
    }

    public function create($data)
    {
        return $this->db->insert("resource", $data);
    }

}